package com.tofine.smarthome.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

import java.io.Serializable;
import java.util.List;

/**
 * @author ddMax
 * @since 2016/5/3 20:42.
 */
@Table(name = "Scenes")
public class Scene extends Model implements Serializable {

    @Column(name = "image")
    public String image;
    @Column(name = "name")
    public String name;
    @Column(name = "status")
    public boolean status;

    public List<Device> devices() {
        return getMany(Device.class, "Scene");
    }

    public Scene() {}

    public Scene(String image, String name, boolean status) {
        this.image = image;
        this.name = name;
        this.status = status;
    }
}
